projects
/
project
/
bcm63xx
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d062482
)
dm: usb: Add a compatible string for PCI EHCI controller
author
Simon Glass
<
[email protected]
>
Sun, 17 Jan 2016 23:11:07 +0000
(16:11 -0700)
committer
Bin Meng
<
[email protected]
>
Sun, 24 Jan 2016 04:07:19 +0000
(12:07 +0800)
Add a compatible string to allow this to be specified in the device tree
if needed.
Signed-off-by: Simon Glass <
[email protected]
>
Acked-by: Marek Vasut <
[email protected]
>
Reviewed-by: Bin Meng <
[email protected]
>
drivers/usb/host/ehci-pci.c
patch
|
blob
|
history
diff --git
a/drivers/usb/host/ehci-pci.c
b/drivers/usb/host/ehci-pci.c
index cda1c6d5f78ce6126ccb695a9eedd86bc6361553..f21a1fa773b3ac01934a216b709dc107041d6f6f 100644
(file)
--- a/
drivers/usb/host/ehci-pci.c
+++ b/
drivers/usb/host/ehci-pci.c
@@
-137,11
+137,17
@@
static int ehci_pci_remove(struct udevice *dev)
return 0;
}
+static const struct udevice_id ehci_pci_ids[] = {
+ { .compatible = "ehci-pci" },
+ { }
+};
+
U_BOOT_DRIVER(ehci_pci) = {
.name = "ehci_pci",
.id = UCLASS_USB,
.probe = ehci_pci_probe,
.remove = ehci_pci_remove,
+ .of_match = ehci_pci_ids,
.ops = &ehci_usb_ops,
.platdata_auto_alloc_size = sizeof(struct usb_platdata),
.priv_auto_alloc_size = sizeof(struct ehci_pci_priv),